‹#›
Autodesk Inventor 定制开发在线培训 2010
unregister64.vbs示例
•
•dim ret
•dim cmd
•dim InstallLoc
•Set WshShell = CreateObject ("WScript.Shell")
•
•'Find out where the various pieces were installed by looking
•'at the CustomActionData property passed from the installer
•If(IsEmpty(Session)) Then
• 'Not running from the installer. Get the source path based on the current folder.
• InstallLoc = ""
•Else
• 'Running inside the installer, so use the CustomActionData
• InstallLoc = Session.Property("CustomActionData")
•End If
•' you don't have to use the /tlb argument!
•cmd = "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\regasm /unregister /codebase /tlb " & chr(34) & InstallLoc & "CS2005AddIn.dll" & chr(34)
•ret = WshShell.Run (cmd, 7, true)
•
•set WshShell = nothing